import axios from 'axios'

const req = (method, url, params) => {
  return axios({
    method: method,
    url: url,
    hearder: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: params
  }).then(res => res.data)
}

export {
  req
}